﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
using System.Data.OracleClient;
using System.Data;

namespace Quartz.Net.DAL
{
    public static class DalBase
    {
        readonly static string connstr = ConfigurationManager.ConnectionStrings["constr"].ConnectionString;

        public static int ExecuteNonQuery(string strSql,params OracleParameter [] para)
        {
            OracleHelper ora = new OracleHelper(connstr);
            return ora.ExecuteNonQuery(strSql,para);
        }

        public static DataTable ExecuteDataTable(string strSql,params OracleParameter [] para)
        {
            OracleHelper ora = new OracleHelper(connstr);
            return ora.ExecuteDataTable(strSql, para);
        }
    }
}
